<template>
	<view class="login">
		<iot-navbar title="登录" />
		<up-button type="primary" @click="btnState = true" text="折叠面板"></up-button>
		<view v-show="btnState" style="width: 500rpx; height: 500rpx; border: 1px solid red"></view>
		<up-button type="primary" text="登录" @click="loginClick"></up-button>
		<up-button type="primary" text="登录" @click="loginClick"></up-button>
		<!-- 提示框 （直接用会有获取不到的情况，因为可能没有加载完）-->
		<iot-loading ref="loading" />
		<iot-uToast ref="uToast" />
		<iot-noData title="暂无内容1" />
	</view>
</template>

<script setup>
import { ref } from 'vue';
let btnState = ref(false);
let loading = ref(null);
let uToast = ref(null);
setTimeout(() => {
	// loading.value.openLoading('加载中···');
	// uToast.value.openuToastError('旧密码不能为空');
}, 1000);

const loginClick = () => {
	uni.reLaunch({
		url: '/pages/views/index'
	});
};
</script>

<style></style>
